package com.dowsure.apisaas.model;

import com.dowsure.apisaas.annotation.RequestParamValidated;
import com.dowsure.apisaas.enums.CurrencyEnums;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @program: apisaas-sdk
 * @description: 获取强制划扣结果响应参数
 * @author: Dowsure
 * @create: 2022-02-16 09:55
 **/
@Data
public class ForceRepayResult {

    /**
     * 用户侧业务ID，该ID唯一，用于后续取消操作
     */
    @RequestParamValidated(msg = "用户侧业务ID")
    private String bizId;

    /**
     * 用户侧贷款编号
     */
    @RequestParamValidated(msg = "用户侧贷款编号")
    private String loanCode;

    /**
     * 用户侧贷款合同编号
     */
    @RequestParamValidated(msg = "用户侧贷款合同编号")
    private String loanContractNo;

    /**
     * 划扣总金额
     */
    @RequestParamValidated(msg = "划扣总金额")
    private BigDecimal amount;


    /**
     * 币种（ISO 4217 currency codes）
     * CNY（人民币）默认:CNY
     */
    @RequestParamValidated(msg = "币种")
    private CurrencyEnums currency;

    /**
     * 实际划扣金额
     */
    @RequestParamValidated(msg = "实际划扣金额")
    private BigDecimal repaymentAmount;

    /**
     * 扣款时间:YYYY-MM-DD hh:mm:ss
     */
    @RequestParamValidated(msg = "扣款时间")
    private String repaymentDate;
}
